package com.atelier.plugin.database.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class AddConnectionToListAction extends GroupPopupAction{
    public AddConnectionToListAction(String name, @Nullable String groupTitle, @Nullable Icon icon) {
        super(name, groupTitle, icon);
    }

    /**
     * @param e
     * @return
     */
    @Override
    protected AnAction[] getActions(AnActionEvent e) {
        return new AnAction[]{
                new MysqlConnection().canShow(false),
                new OracleConnection().canShow(false)
        };
    }
}
